package org.shangrila.app.sys.eo;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;


/**
 * The persistent class for the SYS_MENUS database table.
 * 
 */
@Entity
@Table(name="SYS_MENUS")
@NamedQuery(name="SysMenus.findAll", query="SELECT s FROM SysMenus s")
public class SysMenus implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private long id;

	private String description;

	private String flag;

	private String name;

	private long orderby;

	private long pid;

	//bi-directional many-to-one association to SysAuthority
	@ManyToOne
	@JoinColumn(name="AUTHORITYID")
	private SysAuthority sysAuthority;

	public SysMenus() {
	}

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getFlag() {
		return this.flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getOrderby() {
		return this.orderby;
	}

	public void setOrderby(long orderby) {
		this.orderby = orderby;
	}

	public SysAuthority getSysAuthority() {
		return this.sysAuthority;
	}

	public void setSysAuthority(SysAuthority sysAuthority) {
		this.sysAuthority = sysAuthority;
	}

	public long getPid() {
		return pid;
	}

	public void setPid(long pid) {
		this.pid = pid;
	}

}